import React from 'react'

interface Props  {}

const App = (props: Props) => {
//   // 8. 正确实现数组排序如[1,9,3,4]=>[1,3,4,9]
// const sortArry=[1,9,3,4]
// sortArry.sort((a,b)=>a-b)
// console.log(sortArry)


  //10. 正确实现排序效果[2,1,4，3]=>[1,2,3,4];
const storArry=[2,1,4,3]
storArry.sort((a,b)=>a-b)
console.log(storArry);


  return (
    <div>App</div>
  )
}

export default App